# -*- coding: utf-8 -*-

import matplotlib.pyplot as plt
from numpy.core.shape_base import block
from mazedata import *

fig, ax = plt.subplots()
ax.set_xlim(0, WIDTH)
ax.set_ylim(0, HEIGHT)
ax.set_aspect(1)

def onclick(event):
    print(event.xdata, event.ydata)
cid = fig.canvas.mpl_connect('button_press_event', onclick)

plt.triplot(points[:,0], points[:,1], tri.simplices, "b-")

plt.triplot(points[:,0], points[:,1], tri.simplices[obtri], "r-")

plt.show()